﻿using Blog.Application.Contract.Base;
using Blog.Application.Contract.User.Dto;


namespace Blog.Application.Contract.Blogs.Dto;

public class BlogDto : EntityDto
{
    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; } = null!;
    /// <summary>
    /// 文章内容
    /// </summary>
    public string? Content { get; set; }
    /// <summary>
    /// 浏览量
    /// </summary>
    public long PageView { get; set; }
    /// <summary>
    /// 文章类型ID
    /// </summary>
    public Guid TypeId { get; set; }
    /// <summary>
    /// 作者ID
    /// </summary>
    public Guid AuthorId { get; set; }
    /// <summary>
    /// 导航属性文章类型
    /// </summary>
    public BlogTypeDto? Type { get; set; }
    /// <summary>
    /// 导航属性用户
    /// </summary>
    public UserDto? Author { get; set; }
}
